home *** CD-ROM | disk | FTP | other *** search
/ Internet Directory for Kids & Parents / InternetDirectory.iso / internet / coachie / mod7.dxr / 00009_news button rollover script.ls < prev    next >
Encoding:
Text File  |  1997-11-25  |  496 b   |  25 lines

  1. on newsbuttons
  2.   global mybutt
  3.   set X to the mouseH
  4.   set mybutt to 0
  5.   if rollOver(6) then
  6.     if (X > 102) and (X < 142) then
  7.       set mybutt to 1
  8.     else
  9.       if (X > 174) and (X < 211) then
  10.         set mybutt to 2
  11.       else
  12.         if (X > 245) and (X < 281) then
  13.           set mybutt to 3
  14.         end if
  15.       end if
  16.     end if
  17.     set the visible of sprite 10 to 1
  18.   else
  19.     set the visible of sprite 10 to 0
  20.   end if
  21.   if mybutt > 0 then
  22.     go(label("6") + mybutt + 1)
  23.   end if
  24. end
  25.